/*
   Copyright (c) 2019 Shanghai Xuanzi Technology Co. Ltd https://xuanzi.ltd
   XZMindMap is licensed under the Mulan PSL v1.
   You can use this software according to the terms and conditions of the Mulan PSL v1.
   You may obtain a copy of Mulan PSL v1 at:
      http://license.coscl.org.cn/MulanPSL
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
   PURPOSE.
   See the Mulan PSL v1 for more details.

*/

package xuanzi.commons.graphics;

public class Paint {

	public Paint() {
		// TODO Auto-generated constructor stub
	}
 
	public float borderSize = 1;
	
	public int textAlign = 0;
	
	public int fillColor = 0x44000000;
	
	public int textColor = 0xFF000000;
	
	public int textSize = 14;
	
	public int borderColor = 0xFF000000;
	
	public String fontName = "sans-serif";
	
	public float lineHeight = 1f;
	
	public int lineStyle = 0;

	public boolean fill ;
	
	public Paint fill(int color) {
		fillColor = color;
		fill = true;
		return this;
	}
	
	public Paint stroke(int color,float size) {
		borderColor = color;
		borderSize = size; 
		lineHeight = size;
		fill = false;
		return this;
	}
}
